<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="icon" type="image/x-icon" href="img/sheep.ico" />
<style>
p{text-align:center;font-size:24px;line-height:50px}
</style>
</head>
<body>
<div style="height:50px">
	<%
		request.setCharacterEncoding("utf-8");
		String info = (String)request.getAttribute("fatieinfo");
		if(info==null||"".equals(info))
		{
			out.print("<p>发布新帖</p>");
		}
		else
		{
			out.print("<p style='color:red'>"+info+"</p>");
		}
	%>
</div>
<form action="MessageServlet?po=fatie" method="post">
	<input type="hidden" value="<%=request.getSession().getAttribute("username") %>" name="username">
	<table width="450px" align="center" style="margin-top:0px">
			<tr>
				<td width="100px" height="80px">
					<font face="微软雅黑" size="4" color="black">标题：</font>
				</td>
				<td width="350px">   
					<input type="text" name="title" required style="height:36px;width:380px;font-size:18px;background:transparent;border:1px solid black" size="20">
				</td>
			</tr>
			<tr>
				<td width="100px" height="100px">
					<font face="微软雅黑" size="4" color="black">类型：</font>
				</td>
				<td width="350px">   
					  <select name="type" style="height:36px;width:380px;font-size:18px;background:transparent;border:1px solid black">
						  <option value="shenghuo" selected="selected">生活</option>
						  <option value="qinggan" >情感</option>
						  <option value="yule" >娱乐</option>
						  <option value="gaoxiao" >搞笑</option>
						  <option value="xinwen" >新闻</option>
						  <option value="tiyu" >体育</option>
						  <option value="youxi" >游戏</option>
						  <option value="xiaoshuo" >小说</option>
						  <option value="dongman" >动漫</option>
					  </select>	
  			</td>
			</tr>
			<tr>
				<td width="100px" height="100px">
					<font face="微软雅黑" size="4" color="black">内容：</font>
				</td>
				<td width="350px">   
					<textarea cols="40" rows="10" name="content"required style="font-size:18px;background:transparent;border:1px solid black"></textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center" height="50px">
				<input type="submit" value="确&nbsp;定&nbsp;发&nbsp;布" style="width:250px;height:50px;background:transparent;color:black;font-size:18px;border:1px solid black">
				</td>
			</tr>
	</table>
</form>
</body>
</html>